#物品

import pygame


class Item(pygame.sprite.Sprite):
    def __init__(self,x,y,w,h,name):
        pygame.sprite.Sprite.__init__(self)
        self.image = pygame.Surface((w,h)).convert()
        self.rect = self.image.get_rect()
        self.rect.x = x
        self.rect.y = y
        self.name = name

class Check_point(Item):
    def __init__(self, x, y, w, h, check_point_type,enemy_group_id=None,name='check_point'):
        Item.__init__(self,x, y, w, h, name)
        self.check_point_type = check_point_type
        self.enemy_group_id = enemy_group_id